#include "aboutus.h"
#include "ui_aboutus.h"

aboutus::aboutus(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::aboutus)
{
    ui->setupUi(this);
    this->setWindowTitle("关于作者");
    this->movie = new QMovie("images//movie.gif");
    ui->movielabel->setMovie(movie);
    this->movie->start();
    QObject::connect(ui->startButton,SIGNAL(clicked(bool)),this,SLOT(startMovie()));
    QObject::connect(ui->stopButton,SIGNAL(clicked(bool)),this,SLOT(stopMovie()));
}

aboutus::~aboutus()
{
    delete ui;
}

void aboutus::startMovie(){
    this->movie->start();
}

void aboutus::stopMovie(){
    this->movie->stop();
}
